package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.Collect;
import cn.wolfcode.trip.base.query.CollecQueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * Copyright: Copyright (c) 2019 Super520
 * 描述：收藏
 *
 * @package: cn.wolfcode.trip.base.service
 * @author: Patch
 * 总结:
 */
public interface ICollectService {
    /**
     * 添加或修改
     * @param Collect
     * @return
     */
    Integer saveOrUpdate(Collect Collect);

    /**
     * 根据id查询收藏对象
     * @param id
     * @return
     */
    Collect selectByPrimaryKey(Long id);

    /**
     * 查询所有收藏对象
     * @return
     */
    List<Collect> selectAll();


    /**
     * 根据根据状态和对象类型查询收藏数量
     * @return
     */
    int selectCount(Collect collect);

    Collect selectByUserId(Long userId,Long collectId);

    Collect selectByState(Collect collect);

    List<Collect> getAllType();

}
